package com.dz.finance.common.service;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface AuthorService<T> {

    /*
    * 自定义登陆过滤器
    * */
    void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException;

    /*
    * 白名单
    * */
    boolean shouldNotFilter(HttpServletRequest request);
}
